from django.db import models


# Create your models here.


class Message(models.Model):
    name = models.CharField(max_length=20, verbose_name='姓名')
    email = models.EmailField(verbose_name='电子邮件')
    address = models.CharField(max_length=100)
    message = models.TextField(verbose_name='留言信息')

    class Meta:
        verbose_name = '留言信息'
        verbose_name_plural = verbose_name
        db_table = 'message'

    def __str__(self):
        return self.name
